<%@page import="com.wiseMen.platform.support.security.UserUtils"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/pages/common/taglib.jsp"%>
<%
    request.setAttribute("currUser", UserUtils.getCurrendUser());
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>工单管理系统</title>
<%@ include file="/WEB-INF/pages/common/includeCoreCssJs.jsp"%>
<link href="${root}/res/css/main.css" rel="stylesheet" type="text/css"/>
<style type="text/css">
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini fixed ">
	<div class="wrapper">
		<!-- Main Header -->
		<header class="main-header">
			<!-- Logo -->
			<a href="${root}" class="logo">
				<!-- mini logo for sidebar mini 50x50 pixels -->
				<span class="logo-mini">工单管理系统</span>
				<!-- logo for regular state and mobile devices -->
				<span class="logo-lg">
					工单管理系统
				</span>
			</a>
		
			<!-- Header Navbar -->
			<nav class="navbar navbar-static-top" role="navigation">
				<!-- Sidebar toggle button-->
				<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
					<span class="sr-only">切换导航</span>
				</a>
	
				<!-- Navbar Right Menu -->
				<div class="navbar-custom-menu">
					<ul class="nav navbar-nav">
						
						<!-- User Account Menu -->
						<li class="dropdown user user-menu">
							<!-- Menu Toggle Button -->
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
								<!-- The user image in the navbar-->
								<img src="${root}/res/images/user_default_128.jpg" class="user-image" alt="User Image">
								<!-- hidden-xs hides the username on small devices so only the image appears. -->
								<span class="hidden-xs current-user-name">user name</span>
							</a>
							<ul class="dropdown-menu">
								<!-- The user image in the menu -->
								<li class="user-header">
									<img src="${root}/res/images/user_default_128.jpg" class="img-circle" alt="User Image">
									<p>
										<span class="current-user-name">user name</span> - <span class="current-org-name">Web Developer</span> <small class="current-date">Member since Nov. 2012</small>
									</p>
								</li>
								<!-- Menu Body -->
								<li class="user-body">
									<div class="col-xs-4 text-center">
										<a href="#"></a>
									</div>
									<div class="col-xs-4 text-center">
										<a href="#"></a>
									</div>
									<div class="col-xs-4 text-center">
										<a href="#"></a>
									</div>
								</li>
								<!-- Menu Footer-->
								<li class="user-footer">
									<div class="pull-left">
										<a href="#" class="btn btn-default btn-flat editCurrentUserBt">个人信息</a>
									</div>
									<div class="pull-right">
										<a href="${ctx}/logout.do" class="btn btn-default btn-flat">注销</a>
									</div>
								</li>
							</ul>
						</li>
						<!-- Control Sidebar Toggle Button -->
						<li>
							<!-- 
							<a href="#" data-toggle="control-sidebar">
								<i class="fa fa-gears"></i>
							</a>
							 -->
						</li>
					</ul>
				</div>
			</nav>
		</header>
		<!-- Left side column. contains the logo and sidebar -->
		<aside class="main-sidebar">

			<!-- sidebar: style can be found in sidebar.less -->
			<section class="sidebar">

				<!-- Sidebar user panel (optional) -->
				<div class="user-panel">
					<div class="pull-left image">
						<img src="${root}/res/images/user_default_128.jpg" class="img-circle" alt="User Image">
					</div>
					<div class="pull-left info">
						<p class="current-user-name">user name</p>
						<!-- Status -->
						<a href="#">
							<i class="fa fa-circle text-success"></i> Online
						</a>
					</div>
				</div>

				<!-- Sidebar Menu -->
				<ul class="sidebar-menu" id="sidebar-menu">
					<li class="header">&nbsp;</li>
					
					
				</ul>
				<!-- /.sidebar-menu -->
			</section>
			<!-- /.sidebar -->
		</aside>

		<!-- Content Wrapper. Contains page content -->
		<div class="content-wrapper">
			<!-- Content Header (Page header) -->
			<section class="content-header">
				<h1 id="page-header">
					首页 
				</h1>
				<ol class="breadcrumb">
					<li>
						<a href="#">
							<i class="fa fa-dashboard"></i> 首页
						</a>
					</li>
					<li class="active" id="page-here"></li>
				</ol>
			</section>

			<!-- Main content -->
			<section class="content" id="contentView">

				<!-- Your Page Content Here -->

			</section>
			<!-- /.content -->
		</div>
		<!-- /.content-wrapper -->

		<!-- Control Sidebar -->
		<aside class="control-sidebar control-sidebar-dark">
			<!-- Create the tabs -->
			<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
				<li class="active">
					<a href="#control-sidebar-home-tab" data-toggle="tab">
						<i class="fa fa-home"></i>
					</a>
				</li>
				<li>
					<a href="#control-sidebar-settings-tab" data-toggle="tab">
						<i class="fa fa-gears"></i>
					</a>
				</li>
			</ul>
			<!-- Tab panes -->
			<div class="tab-content">
				<!-- Home tab content -->
				<div class="tab-pane active" id="control-sidebar-home-tab">
					<h3 class="control-sidebar-heading">Recent Activity</h3>
					<ul class="control-sidebar-menu">
						<li>
							<a href="javascript::;">
								<i class="menu-icon fa fa-birthday-cake bg-red"></i>
								<div class="menu-info">
									<h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
									<p>Will be 23 on April 24th</p>
								</div>
							</a>
						</li>
					</ul>
					<!-- /.control-sidebar-menu -->

					<h3 class="control-sidebar-heading">Tasks Progress</h3>
					<ul class="control-sidebar-menu">
						<li>
							<a href="javascript::;">
								<h4 class="control-sidebar-subheading">
									Custom Template Design
									<span class="label label-danger pull-right">70%</span>
								</h4>
								<div class="progress progress-xxs">
									<div class="progress-bar progress-bar-danger" style="width: 70%"></div>
								</div>
							</a>
						</li>
					</ul>
					<!-- /.control-sidebar-menu -->

				</div>
				<!-- /.tab-pane -->
				<!-- Stats tab content -->
				<div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
				<!-- /.tab-pane -->
				<!-- Settings tab content -->
				<div class="tab-pane" id="control-sidebar-settings-tab">
					<form method="post">
						<h3 class="control-sidebar-heading">General Settings</h3>
						<div class="form-group">
							<label class="control-sidebar-subheading">
								Report panel usage
								<input type="checkbox" class="pull-right" checked>
							</label>
							<p>Some information about this general settings option</p>
						</div>
						<!-- /.form-group -->
					</form>
				</div>
				<!-- /.tab-pane -->
			</div>
		</aside>
		<!-- /.control-sidebar -->
		<!-- Add the sidebar's background. This div must be placed
           immediately after the control sidebar -->
		<div class="control-sidebar-bg"></div>
	</div>
	<!-- ./wrapper -->

	<%@ include file="/WEB-INF/pages/common/includeUiScript.jsp"%>
	<script type="text/javascript">
	var AdminLTEOptions = {
	}
	</script>
	<script src="${root}/res/jsLib/adminLTE/app.min.js" type="text/javascript"></script>
	<script src="${root}/res/jsLib/wiseMen/platform/main.js" type="text/javascript"></script>
	<script type="text/javascript">
       	function sysReLogin(){
       		window.location.href=ctx+"/Index.jsp"; 
       	}
       	
       	requirejs(['vue/vue'],function(vue) {
       		$(function () {
                   var mainPage = new wiseMen.platform.mainPage({
                	   sysCode:"WORKORDER"
                   });
               });
       	});
       	
       	String.prototype.format=function(){
			if(arguments.length==0) return this;
			for(var s=this, i=0; i<arguments.length; i++)
			 s=s.replace(new RegExp("\\{"+i+"\\}","g"), arguments[i]);
			return s;
		};
           
    </script>
</body>
</html>
